import request from '@/utils/request'
export function fetchList() {
  return request({
    url: '/v1/shopConfig/list',
    method: 'post'
  })
}
export function deleteMerchantConfig(id) {
  return request({
    url: `/v1/shopConfig/delete/${id}`,
    method: 'post'
  })
}

export function addMerchantConfig(data) {
  return request({
    url: '/v1/shopConfig/add',
    method: 'post',
    data: data
  })
}

export function updateMerchantConfig(data) {
  return request({
    url: '/v1/shopConfig/update/',
    method: 'post',
    data: data
  })
}
export function getMerchantConfigById(id) {
  return request({
    url: `/v1/shopConfig/selectOne/${id}`,
    method: 'post'
  })
}

export function updateStatus(data) {
  return request({
    url: '/v1/shopConfig/updateStatus',
    method: 'post',
    data: data
  })
}

// export function getHomeMerchantConfig(data) {
//   return request({
//     url:'/v1/shopConfig/updateStatus',
//     method:'post',
//     data:data
//   })
// }

